package com.sky.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.sky.entity.AddressBook;
import com.sky.result.Result;

import java.util.List;

/**
 * <p>
 * 地址簿 服务类
 * </p>
 *
 * @author fcy
 * @since 2025-09-12
 */
public interface IAddressBookService extends IService<AddressBook> {

    Result<String> addAddress(AddressBook addressBook);

    List<AddressBook> getList();

    AddressBook getDefault();

    Result<String> setDefault(Integer id);

    Result<String> change(AddressBook addressBook);

    Result<String> deleteById(Integer id);
}
